Skip to content

feat: ship the third-party notices and show them under Licences - #23

Merged
nodemode-ai merged 4 commits into
mainfrom
chore/launcher-and-notices
Nov 30, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
chore/launcher-and-notices

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

feat: ship the third-party notices and show them under Licences

Summary

  • The app now ships THIRD-PARTY-NOTICES.txt, the full licence texts of what it carries: the 516 registry crates reachable from the app and the command line in Cargo.lock, Vite's module preload helper, the extension kit's Apache-2.0 text, the three demos' credits, and a note on the LGPL libraries in the Linux AppImage. setup/notices.py generates it.
  • The window shows it under a Licences button in the footer, formmcp-cli notices prints it, and the bundle carries the file as a resource.
  • python3 -I setup/notices.py --check runs in CI's test job and fails by name when a shipped crate, the kit copy, a demo's credits or the bundle entry is not covered.
  • For the 33 shipped crates whose published crate carries no licence file, the upstream texts are kept in setup/licence_texts, each with its source (32 from upstream, selectors reconstructed from the SPDX MPL-2.0 text).
  • main is merged in. Pull request fix: refuse writing client configs from a disk image and show missing agent programs #22 landed after this branch was cut and three files conflicted: core/src/lib.rs, core/HASHOUT_LOG.md and frontend/HASHOUT_LOG.md. In each, both sides had added lines at the same place; both additions are kept (pub mod mounts; then pub mod notices;, and both Unreleased sections of each log). Nothing else differs from what git merged by itself.

Commits

  • chore: generate THIRD-PARTY-NOTICES.txt with every shipped licence text (5be3d0b, gbarnai)
  • feat: ship the third-party notices and show them under Licences (9695ab8, gbarnai)
  • chore: carry upstream licence texts for crates published without one (b4c54ae, gbarnai)
  • Merge branch 'main' into chore/launcher-and-notices (nodemode-ai; a merge commit, and its hash changes when it is signed)

Version

No new version. Cargo.toml, src-tauri/tauri.conf.json and frontend/package.json stay at 0.14.1 and there is no release commit, so there is nothing to build after this merge. CHANGELOG.md keeps the Unreleased section that #22 added; this pull request adds no line to it.

Checks

Run on the merged tree, on Linux:

  • python3 -I setup/notices.py --check: covers everything that ships. main made libc a direct dependency of formmcp-core on macOS; libc was already reachable from the app, so the notices file needs no new section and is unchanged.
  • cargo check --locked -p formmcp-core -p formmcp-cli: passed.
  • cargo test --locked -p formmcp-core -p formmcp-cli: 75 passed, 0 failed.
  • cargo check --locked -p formmcp (the desktop shell, which CI does not compile): passed.
  • The scripts job's steps (shell syntax, Python compile, family list against the spec, em dash and emoji scan): all passed.
  • In frontend: npm ci, npm audit (0 vulnerabilities), npm run typecheck and npm run build: all passed.

Not run: any macOS or Windows build; the app's window, so the Licences panel and the Not found card were not looked at together; and setup/notices.py without --check, so the notices file was not regenerated.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash. The three commits by gbarnai are already on GitHub and are not changed.

setup/notices.py writes the full licence texts of every registry crate in
the app's and the command line's Cargo.lock graph, Vite's module preload
helper, the extension kit's Apache-2.0 text and the demos' credits, with a
note for the Linux AppImage's LGPL libraries. --check reads only the lock
files and the repository and runs in the CI test job.
The bundle carries THIRD-PARTY-NOTICES.txt as a resource, the notices
command and the Licences panel in the window's footer read it, and
formmcp-cli notices prints it. Tests cover the check passing on the
committed file, failing by name on a missing crate, changed credits, a
missing resource entry or a missing file, and the command line output.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:13
gbarnai and others added 2 commits November 29, 2026 19:48
Keep the upstream licence files for the 33 shipped crates whose published
crate carries no licence file in setup/licence_texts, each with its
SOURCE.txt and an INDEX.json naming the repository, ref and files.
setup/notices.py now prints those texts with a note naming their source
(32 upstream, selectors reconstructed from the SPDX MPL-2.0 text), and
--check fails when a kept text is not carried or its crate no longer ships.
main gained pull request #22 after this branch was cut (a gone agent
program reads as not found, no agent is connected from a disk image), and
three files conflicted. In each, both sides had added lines at the same
place. Both additions are kept, and nothing else differs from what git
merged by itself.

- core/src/lib.rs: both module lines, `pub mod mounts;` then
  `pub mod notices;`, in the file's alphabetical order.
- core/HASHOUT_LOG.md, frontend/HASHOUT_LOG.md: both Unreleased sections,
  this branch's notices section first, then main's.

main also made libc a direct dependency of formmcp-core on macOS. libc was
already reachable from the app in Cargo.lock, so THIRD-PARTY-NOTICES.txt
needs no new section and is unchanged.

Run on the merged tree, on Linux: python3 -I setup/notices.py --check
(covers everything that ships); cargo check and cargo test --locked -p
formmcp-core -p formmcp-cli (75 passed, 0 failed); cargo check --locked -p
formmcp; the scripts job's shell syntax, Python compile, family check and
em dash and emoji scan; in frontend npm ci, npm audit, typecheck and build.
Not run: any macOS or Windows build, and the app's window.
@nodemode-ai nodemode-ai changed the title chore: full third-party licence notices feat: ship the third-party notices and show them under Licences Nov 30, 2026
@nodemode-ai
nodemode-ai merged commit 694c846 into main Nov 30, 2026
4 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants